#define _CRT_SECURE_NO_WARNINGS 0
#include <stdio.h>
#include <string.h>
#include <windows.h>
int main() {
    //显示的文字
	char arr1[] = "XiaoxiangStar Study C\0";
    //待显示的文字
	char arr2[] = "####################\0";
	int left = 0;
	int right = strlen(arr1)-1;

	while (left <= right) {
		printf("%s", arr2);
		arr2[left] = arr1[left];
		arr2[right] = arr1[right];
		Sleep(300);     //休眠一秒
		system("Cls");      //清空屏幕
		right--;
		left++;
	}
	printf("%s", arr2);
	return 0;
}